home *** CD-ROM | disk | FTP | other *** search
/ MacWorld: Super Stacks! / Macworld CD.iso / HyperCard Archives / International / French v1.2.5.1 / Piles principales / Notes sur la version 1.2.5 / card_9192.txt < prev    next >
Text File  |  1989-10-04  |  2KB  |  69 lines

  1. -- card: 9192 from stack: in.5
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 5683
  5. -- name: foundChunk
  6.  
  7.  
  8. -- part contents for background part 7
  9. ----- text -----
  10. foundChunk
  11.  
  12. -- part contents for background part 9
  13. ----- text -----
  14. Nouvelles fonctions HyperTalk
  15. Carte 2 sur 10
  16.  
  17. -- part contents for background part 8
  18. ----- text -----
  19. the foundChunk
  20.  
  21.  
  22.  
  23. -- part contents for background part 10
  24. ----- text -----
  25. aucun
  26.  
  27. -- part contents for background part 11
  28. ----- text -----
  29. Cette fonction renvoie la description de l'emplacement o√π la cha√Æne recherch√©e par la derni√®re commande Find a √©t√© localis√©e, sous la forme : char <nombre> to <nombre> of <card | bkgnd> field <nombre>. Si la recherche n'a pas abouti, la fonction renvoie une cha√Æne vide.
  30.  
  31.  
  32. -- part contents for background part 17
  33. ----- text -----
  34. --apr√®s ex√©cution des commandes suivantes :
  35. find "Sophie"
  36. put the foundChunk
  37.  
  38. --vous obtiendrez un r√©sultat du type :
  39. char 1 to 7 of bkgnd field 6
  40.  
  41.  
  42. --utilisation de foundChunk pour s√©lectionner la cha√Æne trouv√©e :
  43.  
  44. find string userName in field "noms"
  45. select the foundChunk
  46.  
  47. -- part contents for background part 18
  48. ----- text -----
  49. on foundChunkDemo
  50.  
  51. --affiche l'emplacement de la cha√Æne trouv√©e
  52.  
  53.    find "HyperTalk" in field "ExempleScript"
  54.    put the foundChunk
  55.    wait 2 seconds
  56.  
  57. --s√©lectionne la cha√Æne trouv√©e
  58.    select the foundChunk
  59.    wait 2 seconds
  60.    cleanExit -- dans le script du fond courant
  61.  
  62. end foundChunkDemo
  63.  
  64. -- part contents for background part 31
  65. ----- text -----
  66. Find
  67. foundField
  68. foundLine
  69. foundText